from django.db import models

class GradingItem(models.Model):
    """实习医生病例询问及撰写评价标准模型"""
    item_name = models.CharField(max_length=100, verbose_name="评价点")
    max_score = models.PositiveIntegerField(verbose_name="最高分值")
    description = models.TextField(verbose_name="评价描述")

    class Meta:
        verbose_name = "评分标准"
        verbose_name_plural = "评分标准"
        ordering = ['id']

    def __str__(self):
        return f"{self.item_name}（{self.max_score}分）"